package com.course.server.dto;

import com.course.server.enums.SectionChargeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

@Data
public class SectionDto {
    private String id;

    @NotBlank(message = "小节标题不能为空")
    private String title;

    @NotBlank(message = "课程ID不能为空")
    private String courseId;

    @NotBlank(message = "大章ID不能为空")
    private String chapterId;

    private String video;

    private Integer time;

    private String charge;

    private Integer sort;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createdAt;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updatedAt;

}